import Home from '../page/Home'
import MainLayout from '../page/MainLayout'
import Login from '../page/Login'
import List from '../Page/List'
import My from '../Page/My'
import Chat from '../Page/Chat'
import { createBrowserRouter } from 'react-router-dom'

export const router=createBrowserRouter([
    {
        path:'/',
        element:<MainLayout/>,
        children:[
            {
                path:'/',
                element:<Home/>
            },
            {
                path:'/list',
                element:<List/>
            },
            {
                path:'/my',
                element:<My/>
            },
            {
                path:'/chat',
                element:<Chat/>
            }
        ]
    },
    {
        path:'/login',
        element:<Login/>

    }
])